package com.demo.petshop.service;

import com.demo.petshop.entity.Orders;
import com.demo.petshop.entity.Products;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author lenovo
 * @since 2025-06-11
 */
public interface OrdersService extends IService<Orders> {
    Object getByStatus(String status);

    Object deleteById(Integer id);

    Object confirm(Integer id);



    Object getInfo(Integer id);

    Object createOrder(Orders orders);



    /**
     * 按商店批量创建订单
     * 
     * @param ordersList 按商店分组的订单列表
     * @return 创建结果
     */
    Object createBatchOrders(List<Orders> ordersList);

    Object counts();

    Object paymentOrder(Orders orders);
    Object cancel(Integer id);

    Object repeatPurchase(List<Products> productsList);
}
